let myName = document.querySelector('.myName');
let show_id = document.querySelector('.show_id');
let button2 = document.querySelector(".btn2");


console.log(sessionStorage.getItem('phone'));

let url = 'http://newshopapi.0melon0.cn/api/f_user/report';
let data = {
    'phone': sessionStorage.getItem('phone'),
    'name': sessionStorage.getItem('name')
}
console.log(data);

ajax(url, data, 'POST').then(res => {
    console.log(res);
    myName.innerHTML = `<div class="myName">姓名：${res.result[0].name}</div>`;
    show_id.innerHTML = `<div class="myName">场次：${res.result[0].day_time}</div>`;
});

button2.addEventListener('click', () => {
    location.href = "1login.html";

})